/*
 *  Copyright 2023, SGE.  All right reserved.
 *
 *  THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF SGE CO.,
 *  LTD.  THE CONTENTS OF THIS FILE MAY NOT BE DISCLOSED TO THIRD
 *  PARTIES, COPIED OR DUPLICATED IN ANY FORM, IN WHOLE OR IN PART,
 *  WITHOUT THE PRIOR WRITTEN PERMISSION OF SGE CO., LTD.
 *
 *  
 *
 *  Edit History:
 *
 *    2023年02月17日 - Created by zzx 
 *
 */
#include <gtest/gtest.h>
#include "dbmanager.h"
#include "memdb.h"
#include "MockDB.h"

using namespace std;


TEST(BizTest, test){
}

TEST(DbManagerTest, DbManager){
	MockDb mdb;
	DbManager dbm(mdb);
	bool ret = dbm.createTable("Order");
	ASSERT_TRUE(ret)
	IDB *idb = dbm.getDb();
	ASSERT_TRUE(idb != nullptr);

}
